package com.ruoyi.sea.common.nuem;

public enum SeaParamType {
    WATER_TEMPERATURE("1", "水温℃"),
    COD("2", "cod"),
    PH("3", "ph值"),
    RESIDUALCHLORINE("4", "余氯"),
    CONDUCTIVITY("5", "电导率"),
    AMMONIANITROGEN("6", "氨氮");

    private final String code;

    private final String value;

    SeaParamType(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    ;

    public String getValue() {
        return value;
    }

    ;

    public static String getByCode(String code) {
        for (SeaParamType item : SeaParamType.values()) {
            if (item.getCode().equals(code)) {
                return item.getValue();
            }
        }
        return null;
    }
}
